<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <ul>

    </ul>
    <script>
        let li = new Array(1000).fill('张涛')
        const ul = document.querySelector('ul')
        let list = ``
        for (let i = 0; i < 1000; i++) {
            list += `<li>${li[i]}</li>`
        }
        console.log(list);
        ul.innerHTML = list;


    </script>
</body>

</html>